package cn.chiship.framework.third.biz.wxpub.service.impl;

import cn.chiship.framework.third.core.common.ThirdUtil;
import cn.chiship.framework.third.core.common.WechatUtils;
import cn.chiship.sdk.core.base.BaseResult;
import cn.chiship.sdk.framework.base.BaseServiceImpl;
import cn.chiship.framework.third.biz.wxpub.mapper.ThirdWechatQrcodeMapper;
import cn.chiship.framework.third.biz.wxpub.entity.ThirdWechatQrcode;
import cn.chiship.framework.third.biz.wxpub.entity.ThirdWechatQrcodeExample;
import cn.chiship.framework.third.biz.wxpub.service.ThirdWechatQrcodeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * 二维码 业务接口实现层
 * 2022/7/14
 * @author lijian
 */
@Service
public class ThirdWechatQrcodeServiceImpl extends BaseServiceImpl<ThirdWechatQrcode,ThirdWechatQrcodeExample> implements ThirdWechatQrcodeService {

    private static final Logger LOGGER = LoggerFactory.getLogger(ThirdWechatQrcodeServiceImpl.class);

    @Resource
    ThirdWechatQrcodeMapper thirdWechatQrcodeMapper;

    @Override
    public BaseResult insertSelective(ThirdWechatQrcode thirdWechatQrcode) {
        thirdWechatQrcode.setAppId(ThirdUtil.getAppId());
        return super.insertSelective(thirdWechatQrcode);
    }
}
